package com.n.Internet.Case;

/**
 * @author Mc.Chai
 * @program: Java基础
 * @create 2021-11-28-9:48 09:48
 */
public class TestString {
    public static void main(String[] args) {
        String s="id:1001,pwd:123123";
        System.out.println(s.substring(s.indexOf(":")+1, s.indexOf(",")));
    }
}
